<?php

return array(

	//'配置项'=>'配置值'
   	'APP_GROUP_LIST'           	=>  'Home,Admin,Seoadmin',
   	'DEFAULT_GROUP'             =>  'Home',
   	'SHOW_PAGE_TRACE' =>true, // 显示页面Trace信息
   	//'VAR_PAGE'=>'abc',					//分页参数
	'APP_AUTOLOAD_PATH' 	=>'@.Tool',		//自动加载类库
	'DEFAULT_THEME' 		=> 'jsbing',
	'URL_ROUTER_ON'  		=> true, 		//开启路由
	'URL_ROUTE_RULES'	=>  array(			//伪静态路则规则
		'/^list\/p_(\d+)_(\d+)$/i' =>'Index/page?id=:1&p=:2',
		'/^list\/p\/(\d+)$/i' =>'Index/index?p=:1',
		'/^seo\/(\d+)$/i'=>'Article/show?id=:1',
		'seo'=>'Index/page?id=1',

		'/^idea\/(\d+)$/i'=>'Article/show?id=:1',
		'idea'=>'Index/page?id=2',
		
		'/^test\/(\d+)$/i'=>'Article/show?id=:1',
		'test'=>'Index/page?id=3',
		
		'/^web\/(\d+)$/i'=>'Article/show?id=:1',
		'web'=>'Index/page?id=4',

		'/^write\/(\d+)$/i'=>'Article/show?id=:1',
		'write'=>'Index/page?id=6',

		),
		
	'TMPL_PARSE_STRING'			=>array(
		'__UPLOAD__'=>'/Uploads',
		),
	'URL_CASE_INSENSITIVE' 		=>true,			//不区分大小写
	'URL_MODEL'					=> 2,			// URL模式
	'URL_HTML_SUFFIX'			=> 'html',		// 后缀
	'DB_TYPE'   				=> 'pdo', 		// 数据库类型
	'DB_USER'  					=> 'root', 		// 用户名
	'DB_PWD'    				=> '123456',		// 密码
	'DB_PREFIX' 				=> 'cwe_',		// 数据库表前缀 
	'DB_DSN'    				=> 'mysql:host=localhost;dbname=jsbing;charset=UTF-8',
	'TOKEN_ON'					=> false,  		// 是否开启令牌验证
	'TOKEN_NAME'				=>'__hash__',    	// 令牌验证的表单隐藏字段名称
	'TOKEN_TYPE'				=>'md5',  		//令牌哈希验证规则 默认为MD5
	'TOKEN_RESET'				=>true,  		//令牌验证出错后是否重置令牌 默认为true
	'TAGLIB_PRE_LOAD' 			=>'cx,html,diy', 	//打开标签库
	'SESSION_AUTO_START'		=> true, 		//开启SESSION
	'TMPL_STRIP_SPACE'			=> true, 		 //去除HTML中的空格和换行
	'TMPL_L_DELIM'				=>'<{',		//模板定界符
	'TMPL_R_DELIM'				=>'}>',
	'TMPL_FILE_DEPR'			=>'_',		//模板的目录层次
);